package face.pay.dao;

import face.pay.entity.AgencyQuota;
import face.pay.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: zkj
 * @Date: 2019/7/17 13:54
 * @Description:
 */
@Mapper
public interface AgencyQuotaDao {

    public AgencyQuota getQuotaByUserIdAndLevelId(@Param(value = "userId") Integer userId, @Param(value = "levelId")Integer levelId);

    public void insert(AgencyQuota agencyQuota);

    public List<AgencyQuota> queryListByUser(UserInfo loginUser);

    public List<AgencyQuota> queryUserQuota(UserInfo loginUser);

    void addquantity(AgencyQuota agencyQuota);
}
